package com.chouren.goandroid.animate.effect;

import android.view.View;

import com.nineoldandroids.animation.ObjectAnimator;


public class SlideRightEffect extends BaseEffect {

	@Override
	protected void setAnimators(View view) {
		getAnimatorSet().playTogether(
				ObjectAnimator.ofFloat(view, "translationX", 300, 0)
						.setDuration(duration),
				ObjectAnimator.ofFloat(view, "alpha", 0, 1).setDuration(
						duration * 3 / 2)

		);
	}
}
